package com.jeesite.modules.tk.entity;

import javax.validation.constraints.Size;
import java.util.Date;
import com.jeesite.common.mybatis.annotation.JoinTable;
import com.jeesite.common.mybatis.annotation.JoinTable.Type;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;
import com.jeesite.modules.ic.entity.IcUser;

/**
 * 举报悬赏Entity
 * @author 李寒冰
 * @version 2025-05-09
 */
@Table(name="tk_jubao", alias="a", label="举报悬赏信息", columns={
		@Column(name="id", attrName="id", label="id", isPK=true),
		@Column(name="user_id", attrName="userId", label="用户id"),
		@Column(name="content", attrName="content", label="内容"),
		@Column(name="pics", attrName="pics", label="图片集合"),
		@Column(name="create_time", attrName="createTime", label="create_time", isUpdateForce=true),
		@Column(name="task_id", attrName="taskId", label="任务ID"),
	}, orderBy="a.id DESC"
)
public class TkJubao extends DataEntity<TkJubao> {
	
	private static final long serialVersionUID = 1L;
	private String userId;		// 用户id
	private String content;		// 内容
	private String pics;		// 图片集合
	private Date createTime;		// create_time
	private String taskId;		// 任务ID

	private IcUser icUser;

	private TkTask tkTask;

	public IcUser getIcUser() {
		return icUser;
	}

	public void setIcUser(IcUser icUser) {
		this.icUser = icUser;
	}

	public TkTask getTkTask() {
		return tkTask;
	}

	public void setTkTask(TkTask tkTask) {
		this.tkTask = tkTask;
	}

	public TkJubao() {
		this(null);
	}
	
	public TkJubao(String id){
		super(id);
	}
	
	@Size(min=0, max=50, message="用户id长度不能超过 50 个字符")
	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}
	
	@Size(min=0, max=255, message="内容长度不能超过 255 个字符")
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}
	
	public String getPics() {
		return pics;
	}

	public void setPics(String pics) {
		this.pics = pics;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
	@Size(min=0, max=50, message="任务ID长度不能超过 50 个字符")
	public String getTaskId() {
		return taskId;
	}

	public void setTaskId(String taskId) {
		this.taskId = taskId;
	}
	
}